import request from '@/utils/request'

//部门列表
export function getDeptList(query) {
    return request({
        url: 'system/dept/list',
        method: 'get',
        params: query
    })
}

//部门新增
export function addDept(data) {
    return request({
        url: 'system/dept/add',
        method: 'post',
        data
    })
}

//部门编辑
export function editDept(data) {
    return request({
        url: 'system/dept/edit',
        method: 'post',
        data
    })
}

//部门详情
export function deptDetail(query) {
    return request({
        url: 'system/dept/detail',
        method: 'get',
        params: query
    })
}

//部门删除
export function delDept(data) {
    return request({
        url: 'system/dept/del',
        method: 'post',
        data
    })
}

//部门所有
export function getDeptAll(query) {
    return request({
        url: 'system/dept/all',
        method: 'get',
        params: query
    })
}
